A brief summary of the inhibition / excitation theory of extinction and spontaneous recovery in classical conditioning (also discussed in Mazur on p. 70-71):

1) An excitatory CS-US connection builds up to its maximum strength during the acquisition phase of classical conditioning (through contiguity of CS and US, for Pavlov), so that the CS alone will produce the CR.

2) During the extinction phase (CS presented with no US), an inhibitory CS-US connection builds up, tending to prevent the CR -- as if the animal learns that the CS does not lead to the US after all. CR strength is amount of excitation minus amount of inhibition.
FIRST EXTINCTION:

3) When the strength of the inhibitory CS-US connection becomes equal to the strength of the excitatory connection, extinction is complete and no CR occurs.

4) During a rest period, the inhibitory CS-US connection weakens and disappears, but the excitatory connection does not.
DISSIPATION OF INHIBITION:

5) When the CS is next presented after the rest period, inhibition has almost completely dissipated, so the excitatory connection can again produces the CR: this is spontaneous recovery of the CR, at a slightly lower strength than it was initially. Again, CR strength is amount of excitation minus amount of inhibition.
SPONTANEOUS RECOVERY:

6) With each succeeding extinction, the inhibitory CS-US connection becomes more permanent (i.e., it weakens less each time) -- so eventually it loses NO strength during the rest period, and no spontaneous recovery happens..
SECOND EXTINCTION, after rest period (Note larger amount of residue at start of each extinction after each dissipation of inhibition):

THIRD EXTINCTION, after another rest period (note starting residue after dissipation is greater than last time):

FOURTH EXTINCTION, after another rest period (note starting residue after dissipation is greater still):

EVENTUAL FINAL EXTINCTION, after several more extinctions and rest periods (note starting residue of inhibition is full strength, i.e., inhibition has become permanent and no dissipation has occurred):